//
//  NSObjectExtensions.swift
//  CardBag
//
//  Created by hl on 2019/5/14.
//  Copyright © 2019 hlznj. All rights reserved.
//

import Foundation
import UIKit

extension UIDevice {
    public func isIphoneX() -> Bool {
        var iphoneX = false
        if UIDevice.current.userInterfaceIdiom != .phone {
            return iphoneX
        }
        if KWindow.safeAreaInsets.bottom > 0.0 {
            iphoneX = true
        }
        return iphoneX
    }
}
